﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Admin.Learning
{
    using SharingCenter.Web.Classes;
    using System.Xml.Linq;
    using System.Xml.XPath;
    using System.Text;
    using System.Xml;
    public partial class Skills : AdminPageBase
    {
        protected string xmlPath = HttpContext.Current.Server.MapPath(WebConsts.APPDATA_DIR + "/Skills.xml");

        protected void Page_Init(object sender, EventArgs e)
        {
            //btnSubmit.Click += new EventHandler(btnSubmit_Click);
        }

        void btnSubmit_Click(object sender, EventArgs e)
        {
            //Request.Form["scat"]
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if(IsPostBack)
            {
                string v = Request.Form["hdnCatList"];
                XDocument doc = XDocument.Parse(v);
                HttpContext.Current.Cache["SKILLDOC"] = doc;
                doc.Save(xmlPath);
                this.SetTopMostMessage("所做更改已保存", true);
                this.RefreshPage();
            }
        }

      
    }
}
